package com.hainan.cs.bean;

/**
 * 判断题的java bean
 *
 * @author hl
 */
public class JudgeQuestionBean {

    private String level;

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }


    private String id;
    private String paperid;
    private int number;
    private String description;
    private String answer;//"yes"或"no"

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPaperid() {
        return paperid;
    }

    public void setPaperid(String paperid) {
        this.paperid = paperid;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Override
    public int hashCode() {
        return description.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return obj instanceof JudgeQuestionBean && (description + "").equals(((JudgeQuestionBean) obj).description);

    }
}
